package com.cmf.dto;

import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: cmf
 * @Date: 2025/8/27 16:48
 * @Version: v1.0.0
 * @Description: 员工登录数据传输对象
 **/
@Data
public class EmployeeLoginDto {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 20, message = "用户名长度必须在2-20之间")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度必须在6-20之间")
    private String password;
}
